import { defineStore } from 'pinia'


export const useGenealStore = defineStore('geneal',() =>{

    //定义当前谱系id
    const genealId = ref<string|number>('1956739904305766402');

    const setGeId = ((geId:string|number) =>{
        debugger
        genealId.value = geId
    })

    const getGeId = (() =>{
        return genealId;
    })

    return {
        genealId,
        setGeId,
        getGeId
    }
})